<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增托盘条码头部')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-trayCodeHead-add">
            <div class="row">
            <div class="col-sm-6">
            <div class="form-group">    
                <label class="col-sm-3 control-label">条码头：</label>
                <div class="col-sm-8">
                    <input id="tHead" name="tHead" class="form-control" type="text" onkeyup="keyup()" placeholder="只能输入字母">
                </div>
            </div>
            </div>
            <div class="col-sm-6">
            <div class="form-group">

                <label class="col-sm-3 control-label">条码状态：</label>
                <div class="col-sm-8">
                        <select id="tStatus" name="tStatus" class="form-control" type="text">
                            <option value="Y">可用</option>
                            <option value="N">不可用</option>
                        </select>
                    </div>
            </div>
            </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "bas/trayCodeHead"
        $("#form-trayCodeHead-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-trayCodeHead-add').serialize());
            }
        }
        function keyup() {
            var text=$('#tHead').val();
            var text1=text.replace(/[^a-zA-Z]/g,'');
            var text2=text1.toUpperCase();
            $("#tHead").val(text2);
        }
    </script>
</body>
</html>